<?php
	include("include/init.php");//将配置文件全部加载进来

	$set = new sql_class("settings");//实例化一个对象 设置表
	$article = new sql_class("article");//实例化文章表对象

	$set_list = $set->select("set_id IN (25,30,39,40)")->getAll();

	$artcle_list = $article->select("artcate_id = 1")->orderBy(["article_id","DESC"])->getAll();

	//var_dump($artcle_list);exit;
	$smarty->assign("set_list",$set_list);

	$smarty->assign("artcle_list",$artcle_list);


	$smarty->display('intro.html');



?>